﻿

using BotDetector.Core;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace BotDetector.Tests.Generated
{
    [TestClass]
    public class DetectorBotTestWithTopicPolitics
    {
        private static Detector detector;

        [ClassInitialize()]
        public static void ClassInit(TestContext context)
        {
            detector = new Detector();
        }

		        [TestMethod]
        public void TestForIndividualBotTextWithTopicPolitic1()
        {
            double rez = detector.Classify("Why is the senior Congress leader P Chidambaram not likely to be reprimanded by the party high command for his remarks on the imposition of Emergency in 1975 and the ban on Salman Rushdie�s controversial book The Satanic Verses in 1988? If the Congress leaders are to be believed, the party is neither worried nor embarrassed by the former finance minister�s statement made on 28 November at the Times LitFest in Delhi.");

            Assert.IsTrue((rez > 0.5), "Politic test 1 failed");
        }
		        [TestMethod]
        public void TestForIndividualBotTextWithTopicPolitic2()
        {
            double rez = detector.Classify("Commonwealth leaders have agreed to set up a climate change hub to facilitate access to funds for the small and poor countries, a decision which is in sync with India's demand for providing adequate financial resources to developing nations to reduce green house gas emissions.");

            Assert.IsTrue((rez > 0.5), "Politic test 2 failed");
        }
		        [TestMethod]
        public void TestForIndividualBotTextWithTopicPolitic3()
        {
            double rez = detector.Classify("As secretary of state, Hillary Rodham Clinton opened her office to dozens of influential Democratic party fundraisers, former Clinton administration and campaign loyalists, and corporate donors to her family's global charity, according to State Department calendars obtained by The Associated Press.");

            Assert.IsTrue((rez > 0.5), "Politic test 3 failed");
        }
		        [TestMethod]
        public void TestForIndividualBotTextWithTopicPolitic4()
        {
            double rez = detector.Classify("Lafayette is known as the �Hero of Two Worlds.� An aristocrat, he paid his own way to sail to the United States to fight in the American Revolution -- helping forge the first bond between the fledging nation and the French.");

            Assert.IsTrue((rez > 0.5), "Politic test 4 failed");
        }
			}
}